package net.zoneland.knowledge.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class HotQueAndSearchExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HotQueAndSearchExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCategoryIsNull() {
            addCriterion("CATEGORY is null");
            return (Criteria) this;
        }

        public Criteria andCategoryIsNotNull() {
            addCriterion("CATEGORY is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryEqualTo(String value) {
            addCriterion("CATEGORY =", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotEqualTo(String value) {
            addCriterion("CATEGORY <>", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryGreaterThan(String value) {
            addCriterion("CATEGORY >", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryGreaterThanOrEqualTo(String value) {
            addCriterion("CATEGORY >=", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLessThan(String value) {
            addCriterion("CATEGORY <", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLessThanOrEqualTo(String value) {
            addCriterion("CATEGORY <=", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLike(String value) {
            addCriterion("CATEGORY like", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotLike(String value) {
            addCriterion("CATEGORY not like", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryIn(List<String> values) {
            addCriterion("CATEGORY in", values, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotIn(List<String> values) {
            addCriterion("CATEGORY not in", values, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryBetween(String value1, String value2) {
            addCriterion("CATEGORY between", value1, value2, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotBetween(String value1, String value2) {
            addCriterion("CATEGORY not between", value1, value2, "category");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeIsNull() {
            addCriterion("CONFIGURATIONTYPE is null");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeIsNotNull() {
            addCriterion("CONFIGURATIONTYPE is not null");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeEqualTo(String value) {
            addCriterion("CONFIGURATIONTYPE =", value, "configurationType");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeNotEqualTo(String value) {
            addCriterion("CONFIGURATIONTYPE <>", value, "configurationType");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeGreaterThan(String value) {
            addCriterion("CONFIGURATIONTYPE >", value, "configurationType");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeGreaterThanOrEqualTo(String value) {
            addCriterion("CONFIGURATIONTYPE >=", value, "configurationType");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeLessThan(String value) {
            addCriterion("CONFIGURATIONTYPE <", value, "configurationType");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeLessThanOrEqualTo(String value) {
            addCriterion("CONFIGURATIONTYPE <=", value, "configurationType");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeLike(String value) {
            addCriterion("CONFIGURATIONTYPE like", value, "configurationType");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeNotLike(String value) {
            addCriterion("CONFIGURATIONTYPE not like", value, "configurationType");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeIn(List<String> values) {
            addCriterion("CONFIGURATIONTYPE in", values, "configurationType");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeNotIn(List<String> values) {
            addCriterion("CONFIGURATIONTYPE not in", values, "configurationType");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeBetween(String value1, String value2) {
            addCriterion("CONFIGURATIONTYPE between", value1, value2, "configurationType");
            return (Criteria) this;
        }

        public Criteria andConfigurationTypeNotBetween(String value1, String value2) {
            addCriterion("CONFIGURATIONTYPE not between", value1, value2, "configurationType");
            return (Criteria) this;
        }

        public Criteria andSortIsNull() {
            addCriterion("SORT is null");
            return (Criteria) this;
        }

        public Criteria andSortIsNotNull() {
            addCriterion("SORT is not null");
            return (Criteria) this;
        }

        public Criteria andSortEqualTo(BigDecimal value) {
            addCriterion("SORT =", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotEqualTo(BigDecimal value) {
            addCriterion("SORT <>", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThan(BigDecimal value) {
            addCriterion("SORT >", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("SORT >=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThan(BigDecimal value) {
            addCriterion("SORT <", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThanOrEqualTo(BigDecimal value) {
            addCriterion("SORT <=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortIn(List<BigDecimal> values) {
            addCriterion("SORT in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotIn(List<BigDecimal> values) {
            addCriterion("SORT not in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SORT between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SORT not between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andQueNameIsNull() {
            addCriterion("QUENAME is null");
            return (Criteria) this;
        }

        public Criteria andQueNameIsNotNull() {
            addCriterion("QUENAME is not null");
            return (Criteria) this;
        }

        public Criteria andQueNameEqualTo(String value) {
            addCriterion("QUENAME =", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameNotEqualTo(String value) {
            addCriterion("QUENAME <>", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameGreaterThan(String value) {
            addCriterion("QUENAME >", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameGreaterThanOrEqualTo(String value) {
            addCriterion("QUENAME >=", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameLessThan(String value) {
            addCriterion("QUENAME <", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameLessThanOrEqualTo(String value) {
            addCriterion("QUENAME <=", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameLike(String value) {
            addCriterion("QUENAME like", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameNotLike(String value) {
            addCriterion("QUENAME not like", value, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameIn(List<String> values) {
            addCriterion("QUENAME in", values, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameNotIn(List<String> values) {
            addCriterion("QUENAME not in", values, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameBetween(String value1, String value2) {
            addCriterion("QUENAME between", value1, value2, "queName");
            return (Criteria) this;
        }

        public Criteria andQueNameNotBetween(String value1, String value2) {
            addCriterion("QUENAME not between", value1, value2, "queName");
            return (Criteria) this;
        }

        public Criteria andCreatorNameIsNull() {
            addCriterion("CREATORNAME is null");
            return (Criteria) this;
        }

        public Criteria andCreatorNameIsNotNull() {
            addCriterion("CREATORNAME is not null");
            return (Criteria) this;
        }

        public Criteria andCreatorNameEqualTo(String value) {
            addCriterion("CREATORNAME =", value, "creatorName");
            return (Criteria) this;
        }

        public Criteria andCreatorNameNotEqualTo(String value) {
            addCriterion("CREATORNAME <>", value, "creatorName");
            return (Criteria) this;
        }

        public Criteria andCreatorNameGreaterThan(String value) {
            addCriterion("CREATORNAME >", value, "creatorName");
            return (Criteria) this;
        }

        public Criteria andCreatorNameGreaterThanOrEqualTo(String value) {
            addCriterion("CREATORNAME >=", value, "creatorName");
            return (Criteria) this;
        }

        public Criteria andCreatorNameLessThan(String value) {
            addCriterion("CREATORNAME <", value, "creatorName");
            return (Criteria) this;
        }

        public Criteria andCreatorNameLessThanOrEqualTo(String value) {
            addCriterion("CREATORNAME <=", value, "creatorName");
            return (Criteria) this;
        }

        public Criteria andCreatorNameLike(String value) {
            addCriterion("CREATORNAME like", value, "creatorName");
            return (Criteria) this;
        }

        public Criteria andCreatorNameNotLike(String value) {
            addCriterion("CREATORNAME not like", value, "creatorName");
            return (Criteria) this;
        }

        public Criteria andCreatorNameIn(List<String> values) {
            addCriterion("CREATORNAME in", values, "creatorName");
            return (Criteria) this;
        }

        public Criteria andCreatorNameNotIn(List<String> values) {
            addCriterion("CREATORNAME not in", values, "creatorName");
            return (Criteria) this;
        }

        public Criteria andCreatorNameBetween(String value1, String value2) {
            addCriterion("CREATORNAME between", value1, value2, "creatorName");
            return (Criteria) this;
        }

        public Criteria andCreatorNameNotBetween(String value1, String value2) {
            addCriterion("CREATORNAME not between", value1, value2, "creatorName");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CREATETIME is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CREATETIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATETIME =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATETIME <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATETIME >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATETIME >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATETIME <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATETIME <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATETIME in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATETIME not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATETIME between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATETIME not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("ID like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("ID not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("REMARK is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("REMARK is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("REMARK =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("REMARK <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("REMARK >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("REMARK >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("REMARK <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("REMARK <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("REMARK like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("REMARK not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("REMARK in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("REMARK not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("REMARK between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("REMARK not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andOrgDnIsNull() {
            addCriterion("ORGDN is null");
            return (Criteria) this;
        }

        public Criteria andOrgDnIsNotNull() {
            addCriterion("ORGDN is not null");
            return (Criteria) this;
        }

        public Criteria andOrgDnEqualTo(String value) {
            addCriterion("ORGDN =", value, "orgDn");
            return (Criteria) this;
        }

        public Criteria andOrgDnNotEqualTo(String value) {
            addCriterion("ORGDN <>", value, "orgDn");
            return (Criteria) this;
        }

        public Criteria andOrgDnGreaterThan(String value) {
            addCriterion("ORGDN >", value, "orgDn");
            return (Criteria) this;
        }

        public Criteria andOrgDnGreaterThanOrEqualTo(String value) {
            addCriterion("ORGDN >=", value, "orgDn");
            return (Criteria) this;
        }

        public Criteria andOrgDnLessThan(String value) {
            addCriterion("ORGDN <", value, "orgDn");
            return (Criteria) this;
        }

        public Criteria andOrgDnLessThanOrEqualTo(String value) {
            addCriterion("ORGDN <=", value, "orgDn");
            return (Criteria) this;
        }

        public Criteria andOrgDnLike(String value) {
            addCriterion("ORGDN like", value, "orgDn");
            return (Criteria) this;
        }

        public Criteria andOrgDnNotLike(String value) {
            addCriterion("ORGDN not like", value, "orgDn");
            return (Criteria) this;
        }

        public Criteria andOrgDnIn(List<String> values) {
            addCriterion("ORGDN in", values, "orgDn");
            return (Criteria) this;
        }

        public Criteria andOrgDnNotIn(List<String> values) {
            addCriterion("ORGDN not in", values, "orgDn");
            return (Criteria) this;
        }

        public Criteria andOrgDnBetween(String value1, String value2) {
            addCriterion("ORGDN between", value1, value2, "orgDn");
            return (Criteria) this;
        }

        public Criteria andOrgDnNotBetween(String value1, String value2) {
            addCriterion("ORGDN not between", value1, value2, "orgDn");
            return (Criteria) this;
        }

        public Criteria andOrOrgDn(String value){
            addCriterion("( orgDn = '"+value+"' or orgDn is null )");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        
        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}